@extends('layouts._app')
@section('content')
    <body>
    <div class="layui-tab page-content-wrap">
        <div class="layui-form-item">
            <div class="layui-inline tool-btn">
                <a class="layui-btn layui-btn-small layui-btn-primary" id='email-refresh-btn'
                   href="{{route('blog.sensitive.index')}}" data-title='刷新'>
                    <i class="layui-icon">&#x1002;</i>
                </a>
            </div>
        </div>
        <div class="layui-tab-content">
        @include('layouts._flash')
        <!--站点配置-->
            <div class="layui-tab-item layui-show">
                {!! Form::open(['route' => 'blog.sensitive.store','method'=>'post']) !!}
                <div class="layui-form-item layui-form-text">
                    {!! Form::label('','时间：',['class'=>'layui-form-label'])  !!}
                    <div class="layui-input-block">
                        {!! Form::text('',"{$sensitive['time']}",['class'=>'layui-input','disabled']) !!}
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    {!! Form::label('','大小：',['class'=>'layui-form-label'])  !!}
                    <div class="layui-input-block">
                        {!! Form::text('',"{$sensitive['size']}",['class'=>'layui-input','disabled']) !!}
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    {!! Form::label('','敏感词：',['class'=>'layui-form-label'])  !!}
                    <div class="layui-input-block">
                        {!! Form::textarea('sensitive',"{$sensitive['text']}",['class'=>'layui-textarea','style'=>'height: -webkit-fill-available;']) !!}
                    </div>
                </div>
                <div class="layui-form-item">
                    <p style="color:red">敏感词用逗号隔开，可以一行一个单词 ： `,`</p>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        {!! Form::submit('立即提交',['class'=>'layui-btn layui-btn-normal','lay-filter'=>'emailInfo','lay-submit']); !!}
                        <button type="reset" class="layui-btn layui-btn-primary"><i
                                class="layui-icon">&#x1006;</i> 重置
                        </button>
                    </div>
                </div>
                {!! Form::close() !!}
            </div>
        </div>
    </div>
    <script src="{{asset('static/admin/layui/layui.js')}}" type="text/javascript" charset="utf-8"></script>
    <script src="{{asset('js/jquery.min.js')}}" type="text/javascript" charset="utf-8"></script>
    <script>
        layui.use(['form', 'jquery', 'tree', 'element'], function () {
            var form = layui.form();

            //监听提交
            form.on('submit(demo1)', function (data) {
            });
            var textarea = $('textarea');
            textarea.scrollTop(textarea[0].scrollHeight);
            form.render();

        });
    </script>
    </body>
@endsection
